
import 'package:favorcate/ui/pages/drawer/home_drawer.dart';
import 'package:favorcate/ui/pages/home/home_content.dart';
import 'package:flutter/material.dart';

/* Build 找到当前的 context
* Builder(
    builder: (ctx) {
      return IconButton(
         icon: Icon(Icons.build),
         onPressed: () {
            Scaffold.of(ctx).openDrawer();
         }
      );
   }
),*/
class JKHomeScreen extends StatelessWidget {

  static const String routeName = '/home';

  @override
  Widget build(BuildContext context) {

    return Scaffold(
      appBar: AppBar(
        title: Text('美食广场'),
        leading: IconButton(
            icon: Icon(Icons.build),
            onPressed: () {
              Scaffold.of(context).openDrawer();
            }
        )
      ),
      body: JKHomeContent(),

    );
  }
}
